BHARAT SEVAK SAMAJ

Programming in C - Theory

BSS/CT/1801                                                                                                                                                                                                                                            

Time: 2 hrs. Max. Marks: 100

 

I.  Fill in the blanks:                                                                         (10 x 1 = 10)

1.      a = ++y: where y = 4,then the value of a is ------------.

2.      The C language was originally developed from------------language.

3.      C language was implemented in the year-----------.

4.      C language was implemented at the ------------ laboratories.

5.      The UNIX operating system was written in------------ language.

6.      A C program is basically a collection of-----------.

7.      C language is well suited for------------programming.

8.      ------------- is an example of linear data structure.

9.      The operator that indicates logical AND is ----------------.

10. The operator “++’’ is known as -----------operator.

 

II. State whether True or False:                                                       (10 x 1 = 10)     

1.      Every C program ends with an END word. 

2.      A printf ( ) function generate only one line of output. 

3.      The basic meaning of the C keywords can be changed. 

4.      The underscore character is allowed in identifiers.

5.      C language has two types of constants that are numeric and character. 

6.      In C, commas are allowed in between digits of an integer. 

7.      The number -71 is not valid in C.

8.      A double data type number uses 64 bits giving a precision of 14 digits. 

9.      The # define statements may appear anywhere in the program. 

10. #define statements must not end with a semicolon. 

 

III. Answer any SIX of the following:                                               (6 x 10 = 60)

1.      Explain about logical operators and increment/decrement operators?

2.      Write a program to find the sum of three digit number?

3.      Differentiate between while and do…while statement.

4.      What is the difference between call by reference and call by value?

5.      What are the functions present in C graphics library?

6.      Describe the use and limitations of getc and putc?

7.      What is the difference between local and global variables?

 

IV.                                                                                                         Answer any ONE of the following:                                              (1 x 20 = 20)

1.      What are the different control structures in C?

2.       Write notes on different file Functions in C.